package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.OrganizationInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface OrganizationInfoMapperExt extends OrganizationInfoMapper{

    OrganizationInfo selectOrgByType(Byte type);

    OrganizationInfo selectLastOneByOrgCodeAndStatus(@Param("orgCode") String orgCode, @Param("status") Byte status);

    OrganizationInfo selectByAgentUserName(String agentUserName);

    OrganizationInfo selectByAbbreviation(@Param("abbreviation") String abbreviation);

    List<OrganizationInfo> selectByPrimaryKeyList(@Param("orgIds")Set<String> orgIds);

    List<OrganizationInfo> selectOrgBySocialCreditCode(@Param("unifiedSocialCreditCode") String unifiedSocialCreditCode);
}